package cn.edu.ntu.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.edu.ntu.entity.User;
import cn.edu.ntu.service.UserService;

@Controller
public class UserController {

	@Autowired
	private UserService userService;
	
	@RequestMapping("/getUserInfoById")
	@ResponseBody
	public User getUserInfoById(Integer userId){
		return userService.getUserById(userId);
	}
	
}
